﻿<controls:ChildWindow x:Class="SinaDesktop.Controls.ImageViewerChildWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           MaxWidth="640" MaxHeight="480" MinHeight="300" MinWidth="400"
           Style="{StaticResource ImageViewerChildWindowStyle}">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Image x:Name="imgViewer" Margin="5" MaxWidth="640" MaxHeight="480"/>
        <!--<Image Source="{Binding ThumbnailPic, Converter={StaticResource StringConverter}}" Margin="2"/>-->
        <Button x:Name="OKButton" Content="下载" Click="OKButton_Click" Width="75" Height="30" Margin="0,0,79,0" HorizontalAlignment="Right" Grid.Row="1" />
        <Button x:Name="CancelButton" Content="关闭" Click="CancelButton_Click" Width="75" Height="30" HorizontalAlignment="Right" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>